#if 0
#include <iostream>

int main() 
{
    std::cout << "   ♥ ♥ ♥     ♥ ♥ ♥" << std::endl;
    std::cout << " ♥        ♥        ♥" << std::endl;
    std::cout << "♥                   ♥" << std::endl;
    std::cout << "♥                   ♥" << std::endl;
    std::cout << " ♥                 ♥" << std::endl;
    std::cout << "   ♥             ♥" << std::endl;
    std::cout << "     ♥         ♥" << std::endl;
    std::cout << "       ♥     ♥" << std::endl;
    std::cout << "         ♥ ♥" << std::endl;

    return 0;
}
#endif

#include <iostream>

int main() {
    int n = 10; // 控制爱心的大小，可以根据需要调整

    // 输出上半部分
    for (int i = n/2; i <= n; i += 2) {
        // 输出左侧空格
        for (int j = 1; j < n-i; j += 2)
            std::cout << " ";

        // 输出左侧心形
        for (int j = 1; j <= i; j++)
            std::cout << "♥";

        // 输出中间空格
        for (int j = 1; j <= n-i; j++)
            std::cout << " ";

        // 输出右侧心形
        for (int j = 1; j <= i; j++)
            std::cout << "♥";

        std::cout << std::endl;
    }

    // 输出下半部分
    for (int i = n; i >= 1; i--) {
        // 输出左侧空格
        for (int j = i; j < n; j++)
            std::cout << " ";

        // 输出左侧心形
        for (int j = 1; j <= (i * 2) - 1; j++)
            std::cout << "♥";

        std::cout << std::endl;
    }

    return 0;
}
